package com.xinxing.learning.batch.console;

import com.xinxing.learning.batch.common.LogConstants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.item.ItemWriter;

import java.util.List;

@Slf4j
public class ConsoleWriter implements ItemWriter<String> {
    @Override
    public void write(List<? extends String> list) throws Exception {
        for (String msg : list) {
            log.info(LogConstants.LOG_TAG + "write data: " + msg);
        }
    }
}
